package com.abbas.abchat.dao;

import java.util.List;

/**
 * @author abbas
 * @description: TODO
 * @date 2022/4/13 14:24
 */
public interface BaseDao<T> {

    List<T> findAll() throws Exception;

    T findById(int _id) throws Exception;

    long insert(T entity) throws Exception;

    int deleteById(int _id) throws Exception;

    int updateById(T entity) throws Exception;


}
